// $Id: wm_tjlAlt.menu,v 1.1.2.7 2004/03/20 07:41:02 rain Exp $

	#include "ui/menudef.h"
	#include "ui/etpro.h"

	#define DEFAULT_TEXT_SCALE 0.25

	#define ORIGIN_QUICKMESSAGE		10 10

	#define QM_MENU_GRADIENT_START_OFFSET

	#define QM_MENU_START( WINDOWNAME )																			\
																												\
menuDef {																										\
	name		WINDOWNAME																						\
	visible		0																								\
	fullscreen	0																								\
	rect		0 100 640 380																					\
	onOpen		{ setCvar cl_bypassMouseInput "1" }																\
	onClose		{ setCvar cl_bypassMouseInput "0" }																\
	onEsc		{ closeAll }																					\
																												\
	itemDef {																									\
		name		"window"																					\
		rect		0 19 204 136																				\
		origin		ORIGIN_QUICKMESSAGE																			\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	0 0 0 .75																					\
		border		WINDOW_BORDER_FULL																			\
		bordercolor	.5 .5 .5 .5																					\
		visible		1																							\
		decoration																								\
	}																											\
																												\
	itemDef {																									\
		name		"windowtitle"																				\
		rect		$evalfloat((0)+2) $evalfloat((19)+2) $evalfloat((204)-4) 12									\
		origin		ORIGIN_QUICKMESSAGE																			\
		text		"TRICKJUMP LINES"																					\
		textfont	UI_FONT_ARIBLK_16																			\
		textscale	.19																							\
		textalignx	3																							\
		textaligny	10																							\
		style		WINDOW_STYLE_FILLED																			\
		backcolor	.16 .2 .17 .8																				\
		forecolor	.6 .6 .6 1																					\
		visible		1																							\
		decoration																								\
	}

	#define QM_MENU_END }

	#define QM_MENU_ITEM( WINDOWTEXT, ACTION, KEY, POS )				\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT							\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10			\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT									\
		text			WINDOWTEXT										\
		textfont		UI_FONT_COURBD_21								\
		textstyle		ITEM_TEXTSTYLE_SHADOWED							\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1										\
		visible			1												\
		decoration														\
    }																	\
    execKey KEY { ACTION }

	#define QM_MENU_ITEM_TEAM( WINDOWTEXT, ACTION, KEY, POS )			\
    itemDef {															\
		name			"menuitem"##WINDOWTEXT							\
		rect			6 $evalfloat( 35 + ( 12 * POS )) 128 10			\
		origin			ORIGIN_QUICKMESSAGE								\
		type			ITEM_TYPE_TEXT									\
		text			WINDOWTEXT										\
		textfont		UI_FONT_COURBD_21								\
		textstyle		ITEM_TEXTSTYLE_SHADOWED							\
		textscale		.2												\
		textaligny		8												\
		forecolor		.6 .6 .6 1										\
		visible			1												\
		decoration														\
    }																	\
	execKey KEY { ACTION }


QM_MENU_START( "wm_tjlalt" )

	QM_MENU_ITEM_TEAM(	"1. Record",		exec "tjl_startrecord quickslot";	close wm_tjlalt,	"1", 0 )
	QM_MENU_ITEM_TEAM(	"2. Stop recording",	exec "tjl_stoprecord";			close wm_tjlalt,	"2", 1 )
	QM_MENU_ITEM_TEAM(	"3. Quicksave",		exec "tjl_save quicksave quicksave";		close wm_tjlalt,	"3", 2 )
	QM_MENU_ITEM_TEAM(	"4. Quickload",		exec "tjl_load quickload quickload";		close wm_tjlalt,	"4", 3 )
	QM_MENU_ITEM_TEAM(	"5. Draw slot",		exec "tjl_drawslot quickslot";		close wm_tjlalt,	"5", 4 )
	ETPRO_CVARVALUE(	"6. Show max speed:",	exec "toggle b_tjl_showmaxspeed",	"6", 5, "b_tjl_showmaxspeed", cvarFloatList { "no" 0 "yes" 1 } )
	ETPRO_CVARVALUE(	"7. Current slot:",	exec "cycle b_tjl_quickslot 0 9",	"7", 6, "b_tjl_quickslot", cvarFloatList { "0" 0 "1" 1 "2" 2 "3" 3 "4" 4 "5" 5 "6" 6 "7" 7 "8" 8 "9" 9 } )

QM_MENU_END
